﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Schedule.UI.ViewModel;
using System.Data;
using Schedule.UI.ScheduleService;

namespace Schedule.UI
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        //private ScheduleViewModel ViewModel = new ScheduleViewModel();
        public MainWindow()
        {
            InitializeComponent();
            //this.Loaded += (s, e) => { this.DataContext = ViewModel; };
        }

        private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            //if (this.ViewModel.SelectedCompetitor != null)
            //    this.ViewModel.CurrentCompetitor = this.ViewModel.SelectedCompetitor;
            //else
            //if (this.ViewModel.CurrentCompetitor == null)
                //this.ViewModel.CurrentCompetitor= new Competitor();
        }
    }
}
